from django.db import models

# Create your models here.
# python manage.py makemigrations
# python manage.py migrate

class UserInfo(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=200,verbose_name='用户名')
    age = models.IntegerField()
    height = models.DecimalField(max_digits=5,decimal_places=2)
    wight = models.FloatField()
    birthday = models.DateField()

    class Meta:
        db_table = "user_info"

class User(models.Model):
    username = models.CharField(max_length=100)
    password = models.CharField(max_length=20)

    class Meta:
        db_table = "user"